﻿<Window x:Class="JMT.Shell.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:jmt="clr-namespace:JMT.Controls;assembly=JMT.Controls"
        xmlns:jpnl="clr-namespace:JMT.Controls.Panels;assembly=JMT.Controls"
        Title="MainWindow" Height="350" Width="525" WindowState="Maximized">
    <Grid>
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" Background="Black" Height="70">
                <Grid.RowDefinitions>
                    <RowDefinition Height="*"/>
                    <RowDefinition Height="auto"/>
                    <RowDefinition Height="auto"/>
                </Grid.RowDefinitions>
                <Grid Grid.Row="0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="*"/>
                        <ColumnDefinition Width="auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock Text="Jaeho UML Tool" Foreground="#FFA1A1A1" FontSize="20" FontWeight="Bold" Margin="10,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Left" Grid.Column="0"/>
                    <Menu Grid.Column="1" VerticalAlignment="Top" Margin="0,5,10,0" Background="{x:Null}">
                        <MenuItem Header="File" Foreground="#FF00BCE2">
                            <MenuItem Name="_ctlBtnNew" Header="New Solution" Foreground="#FF00BCE2"/>
                            <Separator/>
                            <MenuItem Name="_ctlBtnOpen" Header="Open Solution" Foreground="#FF00BCE2"/>
                            <Separator/>
                            <MenuItem Name="_ctlBtnSave" Header="Save Solution" Foreground="#FF00BCE2"/>
                        </MenuItem>
                    </Menu>
                </Grid>
                <ToolBarTray Grid.Row="2" Background="{x:Null}">
                    <ToolBar Background="{x:Null}" AllowDrop="False">
                        <Button Name="_ctlBtnAddAssociation" Content="Add Association" Click="_ctlBtnAddRelation_Click" Tag="association" Foreground="#FF00BCE2"/>
                        <Button Name="_ctlBtnAddAggregation" Content="Add Aggregation" Click="_ctlBtnAddRelation_Click" Tag="aggregation" Foreground="#FF00BCE2"/>
                        <Button Name="_ctlBtnAddComposition" Content="Add Composition" Click="_ctlBtnAddRelation_Click" Tag="composition" Foreground="#FF00BCE2"/>
                        <Button Name="_ctlBtnAddGeneralization" Content="Add Generalization" Click="_ctlBtnAddRelation_Click" Tag="generalization" Foreground="#FF00BCE2"/>
                    </ToolBar>
                </ToolBarTray>
            </Grid>
            <Grid Name="_ctlGrid" Grid.Row="1">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="200" MinWidth="200" MaxWidth="400"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <Grid Grid.Column="0" Margin="0,0,5,0">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                            <RowDefinition Height="200" MinHeight="200" MaxHeight="400"/>
                        </Grid.RowDefinitions>
                        <jmt:JMSolutionTree x:Name="_ctlTree" Grid.Row="0"/>
                        <GridSplitter Grid.Row="1" Height="5" VerticalAlignment="Top" HorizontalAlignment="Stretch"/>
                        <jpnl:JMPropertyPanel x:Name="_ctlProPanel" Grid.Row="1" Margin="0,5,0,0"/>
                    </Grid>
                </Grid>
                <GridSplitter Grid.Column="0" Width="5" HorizontalAlignment="Right" VerticalAlignment="Stretch"/>
                <jmt:JDiagramContainer Name="_ctlDiagramContainer" Grid.Column="1">
                </jmt:JDiagramContainer>
            </Grid>
            <StatusBar Grid.Row="2">
                <TextBlock Text="status text"/>
            </StatusBar>
        </Grid>
    </Grid>
</Window>
